package com.xiubai.appforpda.entity;

import java.util.List;


public class PersonEntity {
    public int id;
    public String pid;

    // 部门编码
    public String deptcode;
    // 人员编码
    public String psncode;
    // 人员名称
    public String psnname;
    // 工号
    public String psncard;

    public boolean isSelected = false;

    public SQLOrgPersonBean personBean;

    public List<PersonEntity> personEntities;


    @Override
    public boolean equals(Object obj) {
        if (obj instanceof PersonEntity) {
            PersonEntity bean = (PersonEntity) obj;
            return psncode.equalsIgnoreCase(bean.psncode);
        }
        return false;
    }
}
